﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:prism="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism" 
    xmlns:local="clr-namespace:EIA.SLClient.PlatManage" x:Class="EIA.SLClient.PlatManage.MainPage"
    mc:Ignorable="d" 
    d:DesignHeight="768" d:DesignWidth="1024">
	<UserControl.Resources>
		<ControlTemplate x:Key="ItemsControlControlTemplate1" TargetType="ItemsControl">
			<Grid/>
		</ControlTemplate>
		<ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
			<StackPanel Orientation="Horizontal"/>
		</ItemsPanelTemplate>
	</UserControl.Resources>
	<UserControl.FontSize>
		<StaticResource ResourceKey="FontSize"/>
	</UserControl.FontSize>
	<UserControl.FontFamily>
		<StaticResource ResourceKey="FontFamily"/>
	</UserControl.FontFamily>

    <Grid x:Name="LayoutRoot" Background="White">
    	<Grid.RowDefinitions>
    		<RowDefinition Height="106"/>
    		<RowDefinition/>
    		<RowDefinition Height="40"/>
    	</Grid.RowDefinitions>
        <Grid>
    		<Grid.Background>
    			<ImageBrush Stretch="Fill"/>
    		</Grid.Background>
        	<Grid Margin="0,0,0,32">
        		<Grid.Background>
        			<ImageBrush Stretch="Fill" ImageSource="assets/img/header_bg.png"/>
        		</Grid.Background>
        		<Image HorizontalAlignment="Left" Source="assets/img/logo.png" Stretch="Fill" Width="400" Height="74" VerticalAlignment="Top"/>
        	</Grid>
        	<Grid Height="32" Margin="0" VerticalAlignment="Bottom">
        		<Grid.Background>
        			<ImageBrush Stretch="Fill" ImageSource="assets/img/main_nav_bg.png"/>
        		</Grid.Background>
        		<ItemsControl x:Name="MainNavigationItemsControl" prism:RegionManager.RegionName="MainNavigationRegion" ItemsPanel="{StaticResource ItemsPanelTemplate1}" VerticalContentAlignment="Stretch"/>
        	</Grid>
        	<ContentControl x:Name="HeaderContentControl" prism:RegionManager.RegionName="HeaderRegion"/>
    	</Grid>
    	<Grid Grid.Row="1" Background="#FFF0FEE2" d:LayoutOverrides="GridBox">
    		<Grid.ColumnDefinitions>
    			<ColumnDefinition Width="210"/>
    			<ColumnDefinition/>
    		</Grid.ColumnDefinitions>
    		<Grid Grid.Column="1">
    			<ContentControl x:Name="MainContentControl" prism:RegionManager.RegionName="MainContentRegion" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" d:LayoutOverrides="GridBox"/>
    		</Grid>
    		<Grid Background="#FFC5E0A0">
    			<ContentControl x:Name="SubNavigationContentControl" prism:RegionManager.RegionName="SubNavigationRegion" Grid.Column="0" HorizontalContentAlignment="Stretch"/>
    		</Grid>
        </Grid>
        <Grid Margin="0" Grid.Row="2">
            <Grid.Background>
                <ImageBrush Stretch="Fill" ImageSource="assets/img/footer_bg.png"/>
            </Grid.Background>
            <ContentControl x:Name="FooterContentControl" prism:RegionManager.RegionName="FooterRegion" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" d:IsHidden="True"/>
        </Grid>
        <ContentControl x:Name="NotificationContentControl" prism:RegionManager.RegionName="NotificationRegion" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Grid.RowSpan="3" d:IsHidden="True" d:LayoutOverrides="GridBox"/>

        <ContentControl x:Name="OverlayContentControl" prism:RegionManager.RegionName="OverlayRegion" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Grid.RowSpan="3" d:IsHidden="True" d:LayoutOverrides="GridBox"/>
    </Grid>
</UserControl>
